<template>
  <el-upload
    ref="UploaderFile"
    class="upload-demo"
    :action="options.action"
    :name="options.name"
    :auto-upload="options.autoupload"
    :multiple="options.multiple"
    :limit="1"
    :file-list="fileList"
    :on-preview="handlePreview"
    :on-remove="handleRemove"
    :before-remove="beforeRemove"
    :on-exceed="handleExceed"
    :on-progress="on_progress"
    :on-success="on_success"
    :on-error="on_error"
  >
    <el-button size="small" type="primary">点击上传</el-button>
    <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件，且不超过500kb</div> -->
  </el-upload>
</template>

<script src="./index.js"></script>
<style lang="scss" src="./index.scss"></style>
